home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pirate Informatique 34
/
Pirate infomatique No34.iso
/
js
/
tabs.js
< prev
next >
Wrap
Text File
|
2011-09-15
|
731b
|
28 lines
/* ------------------------------------------------------------------------
Do it when you're ready dawg!
------------------------------------------------------------------------- */
tabs = {
init : function(){
$('.tabs').each(function(){
var th=$(this),
tContent=$('.tab-content',th),
navA=$('.nav a',th)
tContent.not(tContent.eq(0)).hide()
navA.click(function(){
var th=$(this),
tmp=th.attr('href')
tContent.not($(tmp.slice(tmp.indexOf('#'))).fadeIn(1000)).hide()
$(th).parent().addClass('selected').siblings().removeClass('selected').find('span').stop().animate({opacity:'0'},600);
Cufon.refresh();
return false;
});
});
}
}